home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / uupc11ys.zip / LIB / USERTABL.H < prev    next >
C/C++ Source or Header  |  1993-04-14  |  1KB  |  39 lines

  1. /*
  2.    u s e r t a b l .h
  3.  
  4.    routines included in usertabl.c
  5.  
  6.    Copyright (c) 1989, 1990  Andrew H. Derbyshire
  7.  
  8.    Update History:
  9.  
  10.    18Mar90     Create from router.c                                  ahd
  11.  */
  12.  
  13. #ifndef __USERTABL
  14. #define __USERTABLE
  15.  
  16. #define UUCPSHELL "uucp"         /* Shell for UUCP users                */
  17.  
  18. struct  UserTable {
  19.       char  *uid;                /* User id for this host to login via  */
  20.       char  *beep;               /* Tone to beep at upon delivery       */
  21.       char  *password;           /* Password for this host to login via */
  22.       char  *realname;           /* Name of the host in question        */
  23.       char  *homedir;            /* Home directory for user             */
  24.       char  *sh;                 /* Shell for this user                 */
  25.       struct HostSecurity *hsecure; /* Pointer to security information  */
  26.    };
  27.  
  28. extern struct UserTable *users;         /* Public to allow router.c to use it  */
  29. extern size_t UserElements;            /* Public to allow router.c to use it  */
  30.  
  31. struct UserTable *checkuser ( const char *user );
  32.  
  33. char *NextField( char *input );
  34.  
  35. #define BADUSER NULL
  36. #define EMPTY_GCOS "????"
  37.  
  38. #endif
  39.